Download File
Description
Google Drive: Download File step downloads a file or folder on Google Drive to the desired local path.
Reference
API documentation: https://developers.google.com/drive/api/reference/rest/v3/files/get
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step name | Name of the step as it appears in the workflow workspace. This name has to be unique in a single workflow. |
Connection: | Refer Prerequisites and References above to get the connection attributes. | |
2 | Client ID | Specify Client ID of the Google project. The data type is String. This field is mandatory. |
Client Secret: | ||
3 | Accept Values from fields | Leave checkbox unchecked to accept Client Secret value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Secret Key field to appear as Text box. |
4 | Client Secret | Specify Client Secret of the Google project. The data type is String. This field is mandatory. If checkbox above is enabled Client Secret field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Client Secret field appears as a drop down containing values from previous steps - to select from. |
Refresh Token: | ||
5 | Accept Values from fields | Leave checkbox unchecked to accept Secret Key value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Secret Key field to appear as Text box. |
6 | Refresh Token | Specify a Refresh Token to obtain a new Access Token. Note:Refresh Token expires if idle for 6 months. Refresh Token is entered using a widget. If checkbox above is enabled Refresh Token field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Refresh Token field appears as a drop down containing values from previous steps - to select from. The data type is String. This field is mandatory. |
Input Fields: | ||
1 | File ID | Specify the ID of a file or a folder to be downloaded from the Google Drive. The data type is String. This field is mandatory. Refer Table: Fetch File or Folder ID above to fetch the ID. |
2 | Get | Click to fetch the files available in Google Drive, selected file’s ID reflects in the File ID field. |
3 | Output Folder Path | Specify the local Directory path where the file needs to be downloaded or alternately browse for the path. The data type is String. This field is mandatory. |
4 | Browse | Click to browse the path of the downloaded file. |
Additional Input Fields (Optional): | ||
1 | Delete Output Folder Contents Before Downloading | Specify ‘Yes’ Or ‘No’. Set ‘Yes’ to delete the contents of the output folder where the file is to be downloaded, else set ‘No’ to overwrite the duplicate file. Default value is ‘No’. The data type is String. |
2 | Add Date Timestamp for Duplicate Files | Specify ‘Yes’ Or ‘No’. Setting ‘Yes’ creates a new folder for the downloaded file with date and time stamp, else setting ‘No’ overwrites the duplicate file. Default value is ‘No’. The data type is String. |
3 | Add File To Result | Specify ‘Yes’ Or ‘No’. Set ‘Yes’ to add the file to the Request result on AutomationEdge UI. Default value is ‘No’. The data type is String. |
Output Field (Optional): | ||
1 | File Overwritten | Returns ‘Yes’ if the file is overwritten else returns ‘No’. The default value is FileOverwritten. The data type is String. |